package com.warm.pump.executor.service;


import com.warm.pump.module.skd.bean.po.gen.ScheduleInstanceDtl;
import com.warm.pump.module.work.bean.po.gen.WorkItem;

import java.util.Map;

/**
 * Created by guozj on 2018/8/27.
 */
public abstract class BaseExecService {
    protected Map<String, Object> condValueMap;
    protected ScheduleInstanceDtl instanceDtl;
    protected WorkItem itemDtl;

    public void initParams(ScheduleInstanceDtl instanceDtl, WorkItem itemDtl, Map<String, Object> condValueMap) {
        this.instanceDtl = instanceDtl;
        this.itemDtl = itemDtl;
        this.condValueMap = condValueMap;
    }

    public abstract void exec() throws Exception;
}
